<%@ include file="/taglibs.jsp"%>

<head>
    <title>
    <c:if test="${not empty param.id}">
    	<fmt:message key="reportList.editform.title"/>
    </c:if>
    <c:if test="${empty param.id}">
    	<fmt:message key="reportList.addform.title"/>
    </c:if>
    </title>
</head>

<p><fmt:message key="detailForm.header"/></p>
  
<s:form name="reportForm" action="saveReport" method="post" validate="true" enctype="multipart/form-data">
<s:hidden name="id" value="%{entity.id}"/>
<tr>
	<td>
		<s:text name="report.name"></s:text>
        <span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="250" name="reportName" required="true" theme="simple" size="50"/>
    </td>
</tr>


<tr>
	<td>
		<s:text name="report.description"></s:text>
    </td>
    <td>
    	<s:textfield maxlength="250" name="description" required="true" theme="simple" size="70"/>
    </td>
</tr>
<s:file name="uploadFile" label="File" size="50"/>
<tr>
	<td>
		<%-- <s:text name="report.functionname" ></s:text>
        <span class="required">*</span>: --%>
        
    </td>
    <td>
    	<%-- <s:textfield maxlength="250" name="functionName"  theme="simple" size="50" required="true"/> --%>
    	<s:property value="%{functionName}"/>
    	<s:hidden name="functionName" value="%{functionName}"/>
   </td>
</tr>  
<%@ include file="/common_functions.jsp"%>
</s:form>

